package com.hkp.face.result;

import com.hkp.face.utils.BaseResult;

/**
 * @author hkp
 * @create 2019-09-22 19:18
 */
public class ObjectOkResult extends BaseResult {
    public String message = "success";
    public Object data;

    public String msg;

    public String img;

    public ObjectOkResult() {
        super();
    }

    public ObjectOkResult(Object data) {
        super();
        this.data = data;
    }
    public ObjectOkResult(String img) {
        super();
        this.img = img;
    }
    public ObjectOkResult(String msg, int code){
        this.code=code;
        this.msg=msg;
    }

    public static ObjectOkResult fail(String msg, int code) {
        return new ObjectOkResult(msg,code);
    }
}
